﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace UserInterface.Views
{   
    using Helpers;

    /// <summary>
    /// Interaction logic for UnitInfo.xaml
    /// </summary>
    public partial class UnitInfo : UserControl
    {

        public UnitInfo(UnitInfomation unit)
        {
            InitializeComponent();
            this.SetContent(unit);
        }
        private void SetContent(UnitInfomation unit)
        {
            this.HP.Content = unit.HP;
            this.AP.Content = unit.AP;
            this.Attack.Content = unit.Attack;
            this.Defence.Content = unit.Defence;
            this.AttackRange.Content = unit.AttackRange;
            this.Owner.Content = unit.Owner;
        }
    }
}
